<template>
    <div id="main" class="app-main">
        <router-view></router-view>
    </div>
</template>

<script>
    import Vue from 'vue';
    import appRouter from './router/appRouter';
    import Main from './views/Main.vue';
    import Util from './libs/util';

    //请求用户权限
    const requestPermission = params => {
        return Util.axios.post('/ms/getPermission', {}, {withCredentials: true});
    };
    export default {
        data () {
            return {
                //theme: this.$store.state.app.themeColor
            };
        },
        mounted () {

        },
        beforeDestroy () {

        },
        methods: {
            handleStart() {
                this.$Modal.info({
                    title: 'Bravo',
                    content: 'Now, enjoy the convenience of iView.'
                });
            }
        },
        created: function () {

        }
    };
</script>

<style>
    html,body{
        width: 100%;
        height: 100%;
        background: #f0f0f0;
        overflow: hidden;
    }
    .app-main{
        width: 100%;
        height: 100%;
    }
</style>
